package com.tl.spark.java;

import java.util.Random;

/**
 * @program: spark-test
 * @description:
 * @author: dong.tl
 * @create: 2018-10-18 15:00
 **/
public class T {
    public static void main(String arges[]) {
//        String xmlpath = "C:\\Users\\Administrator\\Desktop\\CN101986000000192CN00000861001920AFULZH19870722CN00P.XML";
//        File f = new File(xmlpath);
//        System.out.println(f.getAbsolutePath());

//        for (int i = 0; i < 100; i++) {
//            System.out.println((int) ((Math.random() * 9 + 1) * 100000));
//        }


        for (int i = 0; i <= 100; i++)
        {
            String sources = "0123456789"; // 加上一些字母，就可以生成pc站的验证码了
            Random rand = new Random();
            StringBuffer flag = new StringBuffer();
            for (int j = 0; j < 6; j++)
            {
                flag.append(sources.charAt(rand.nextInt(9)) + "");
            }
            System.out.println(flag.toString());
        }
    }
}
